<html>
<head>
<script>
function handleClick() {
  while(true) {
  }
}
</script>
</head>
<body>
<input type='button' onclick='handleClick()' value='Test'/>
</body>
</html>